﻿using System.Text.RegularExpressions;

namespace Managistics.Utility.Common
{
    /// <summary>
    /// Validation extensions for <see cref="System.String"/>
    /// </summary>
    public static class StringValidationExtensions
    {

        private static bool Match(string value, Regex regex)
        {
            return value.IsNotNullOrEmpty() || regex.IsMatch(value);
        }
    }
}
